package com.carey.myblog.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 
 * @TableName t_message
 */
@TableName(value ="t_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private String nickname;

    /**
     * 
     */
    private String email;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private String avatar;

    /**
     * 
     */
    private Date createTime;

    /**
     * 留言被回复后是否发邮件通知
     */
    private Boolean replyinform;

    /**
     * 
     */
    private String openid;

    /**
     * 
     */
    private Integer adminmessage;

    /**
     *
     */
    private Long parentid;

    @TableField(exist = false)
    private List<Message> replyMessages=new ArrayList<>(); //回复

    @TableField(exist = false)
    private Message parentMessage;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}